package com.arvato.minipro.bean.bean_dto.wx;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author: smallking
 * 
 * @Descibe:封装的为微信小程序提交代码extjson字段实体
 * 
 * @Date: 2018年4月19日  下午6:15:24
 */
public class ExtJson implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 授权方appid
	 */
	private String extAppid;
	/**
	 * 业务自定义字段
	 */
	private Map<String, String> ext;
	/**
	 * 界面详情集合
	 */
	private Map<String, PageInfo> extPages;
	/**
	 * pages界面名集合
	 */
	private List<String> pages;
	/**
	 * 配置 ext.json 是否生效
	 */
	private boolean extEnable = true;
	/**
	 * 是否直接提交到待审核列表
	 */
	private boolean directCommit = false;
	
	private Map<String, Object> window;

	public String getExtAppid() {
		return extAppid;
	}

	public void setExtAppid(String extAppid) {
		this.extAppid = extAppid;
	}

	public Map<String, String> getExt() {
		return ext;
	}

	public void setExt(Map<String, String> ext) {
		this.ext = ext;
	}

	public Map<String, PageInfo> getExtPages() {
		return extPages;
	}

	public void setExtPages(Map<String, PageInfo> extPages) {
		this.extPages = extPages;
	}

	public List<String> getPages() {
		return pages;
	}

	public void setPages(List<String> pages) {
		this.pages = pages;
	}

	public Map<String, Object> getWindow() {
		if(window == null) {
			return new HashMap<String, Object>();
		}
		return window;
	}

	public void setWindow(Map<String, Object> window) {
		this.window = window;
	}

	public boolean isExtEnable() {
		return extEnable;
	}

	public void setExtEnable(boolean extEnable) {
		this.extEnable = extEnable;
	}

	public boolean isDirectCommit() {
		return directCommit;
	}

	public void setDirectCommit(boolean directCommit) {
		this.directCommit = directCommit;
	}

	
}
